import axios from 'axios'
import nprogress from 'nprogress'
import 'nprogress/nprogress.css'
// 创建一个实例
const instance1 = axios.create({
    baseURL:"https://www.fastmock.site/mock/711eb83d52d8cd3279319948a2b5508b/zq",
    timeout:6000
})

instance1.interceptors.request.use(config=>{
    nprogress.start()
    return config
})

instance1.interceptors.response.use(config=>{
    nprogress.done()
    return config.data
})

export default instance1